home *** CD-ROM | disk | FTP | other *** search
/ Total Network Tools 2002 / NextStepPublishing-TotalNetworkTools2002-Win95.iso / Archive / Misc Servers / Zope.exe / DTML-UNLESS.STX < prev    next >
Encoding:
Text File  |  2000-10-12  |  801 b   |  39 lines

  1. unless: Tests a condition
  2.  
  3.   The 'unless' tag provides a shortcut for testing negative
  4.   conditions. For more complete condition testing use the 'if' tag. 
  5.  
  6.   Syntax
  7.  
  8.     'unless' tag syntax::
  9.  
  10.       <dtml-unless ConditionVariable|expr="ConditionExpression">
  11.       </dtml-unless>
  12.  
  13.     The 'unless' tag is a block tag. If the condition variable or
  14.     expression evaluates to false, then the contained block is
  15.     executed. Like the 'if' tag, variables that are not present are
  16.     considered false.
  17.  
  18.   Examples
  19.  
  20.     Testing a variable::
  21.  
  22.       <dtml-unless testMode>
  23.         <dtml-call dangerousOperation>
  24.       </dtml-unless>
  25.  
  26.     The block will be executed if 'testMode' does not exist, or exists
  27.     but is false.
  28.  
  29.   See Also
  30.  
  31.     "if tag":dtml-if.stx
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.